
<!DOCTYPE HTML>
<html lang="zh" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>简介 · diff docs</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="snowdreams1006">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"snowdreams1006","repo":"gitbook-plugin-diff","type":"star","size":"small"}]};
    </script>

    
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    
    
        <link rel="bookmark" href="/bookmark.ico" type="image/x-icon">
    
    
        <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152.png">
    
    
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/apple-touch-icon-precomposed-152.png">
    
    
        
        <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120.png">
        
        <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180.png">
        
    
    
        
        <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/apple-touch-icon-precomposed-120.png">
        
        <link rel="apple-touch-icon-precomposed" sizes="180x180" href="/apple-touch-icon-precomposed-180.png">
        
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://snowdreams1006.tech/" target="_blank" class="custom-link">blog</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-official/">
            
                    
                    gitbook-official
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-mygitalk/">
            
                    
                    gitbook-plugin-mygitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-readmore/">
            
                    
                    gitbook-plugin-readmore
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-favicon-absolute/">
            
                    
                    gitbook-plugin-favicon-absolute
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-copyright/">
            
                    
                    gitbook-plugin-copyright
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-edit-link-plus/">
            
                    
                    gitbook-plugin-edit-link-plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-multilingual-index/">
            
                    
                    gitbook-plugin-multilingual-index
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/gitbook-plugin-icp/">
            
                    
                    gitbook-plugin-icp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/hexo-plugin-gitalk/">
            
                    
                    hexo-plugin-gitalk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" >
            
                <a target="_blank" href="https://snowdreams1006.github.io/hexo-plugin-readmore/">
            
                    
                    hexo-plugin-readmore
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" >
            
                <a target="_blank" href="https://security-plus.github.io/">
            
                    
                    security-plus
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>

    
    <li>
        
        
        
            
        
        
            <a href="http://www.beian.miit.gov.cn/" target="blank" class="gitbook-link">
                浙ICP备18042346号
            </a>
        
    </li>
    
</ul>

                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >简介</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                
                <div id="vip-container">
                    <h1 id="&#x6B22;&#x8FCE;&#x8BBF;&#x95EE;-gitbook-plugin-diff-&#x5B98;&#x7F51;-&#x1F44B;">&#x6B22;&#x8FCE;&#x8BBF;&#x95EE; gitbook-plugin-diff &#x5B98;&#x7F51; &#x1F44B;</h1>
<p><a href="https://www.npmjs.com/package/gitbook-plugin-diff" target="_blank"><img src="https://img.shields.io/npm/v/gitbook-plugin-diff.svg" alt="npm:version"></a>
<a href="https://www.npmjs.com/package/gitbook-plugin-diff" target="_blank"><img src="https://img.shields.io/npm/dt/gitbook-plugin-diff.svg" alt="npm:download"></a>
<a href="https://www.npmjs.com/package/gitbook-plugin-diff" target="_blank"><img src="https://img.shields.io/badge/gitbook-*-blue.svg" alt="npm:prerequisite"></a>
<a href="https://github.com/snowdreams1006/gitbook-plugin-diff#readme" target="_blank"><img src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" alt="github:documentation"></a>
<a href="https://github.com/snowdreams1006/gitbook-plugin-diff/graphs/commit-activity" target="_blank"><img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="github:maintenance"></a>
<a href="https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/npm/l/gitbook-plugin-diff.svg" alt="npm:license"></a>
<a href="https://github.com/snowdreams1006" target="_blank"><img src="https://img.shields.io/badge/github-snowdreams1006-brightgreen.svg" alt="github:snodreams1006"></a>
<a href="https://snowdreams1006.tech/" target="_blank"><img src="https://img.shields.io/badge/website-snowdreams1006.tech-brightgreen.svg" alt="website:snodreams1006.tech"></a>
<a href="https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg" target="_blank"><img src="https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7-%E9%9B%AA%E4%B9%8B%E6%A2%A6%E6%8A%80%E6%9C%AF%E9%A9%BF%E7%AB%99-brightgreen.svg" alt="&#x5FAE;&#x4FE1;&#x516C;&#x4F17;&#x53F7;:&#x96EA;&#x4E4B;&#x68A6;&#x6280;&#x672F;&#x9A7F;&#x7AD9;-brightgreen.svg"></a></p>
<blockquote>
<p>&#x5728; markdown &#x6587;&#x6863;&#x4E2D;&#x663E;&#x793A;&#x4EE3;&#x7801;&#x4E4B;&#x95F4;&#x7684;&#x5DEE;&#x5F02;&#x7684; Gitbook &#x63D2;&#x4EF6;</p>
</blockquote>
<h3 id="&#x1F3E0;-&#x4E3B;&#x9875;">&#x1F3E0; <a href="https://github.com/snowdreams1006/gitbook-plugin-diff#readme" target="_blank">&#x4E3B;&#x9875;</a></h3>
<ul>
<li>Github : <a href="https://snowdreams1006.github.io/gitbook-plugin-diff/" target="_blank">https://snowdreams1006.github.io/gitbook-plugin-diff/</a></li>
<li>GitLab: <a href="https://snowdreams1006.gitlab.io/gitbook-plugin-diff/" target="_blank">https://snowdreams1006.gitlab.io/gitbook-plugin-diff/</a></li>
<li>Gitee : <a href="https://snowdreams1006.gitee.io/gitbook-plugin-diff/" target="_blank">https://snowdreams1006.gitee.io/gitbook-plugin-diff/</a></li>
</ul>
<h2 id="&#x5C4F;&#x5E55;&#x622A;&#x56FE;">&#x5C4F;&#x5E55;&#x622A;&#x56FE;</h2>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<pre><code class="lang-markdown">{% diff method=&quot;diffJson&quot; %}
<span class="hljs-code">```</span>json
{
  &quot;name&quot;: &quot;gitbook-plugin-simple-mind-map&quot;,
  &quot;version&quot;: &quot;0.2.1&quot;,
  &quot;description&quot;: &quot;A gitBook plugin for generating and exporting mind map within markdown&quot;
}
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>json
{
  &quot;name&quot;: &quot;gitbook-plugin-diff&quot;,
  &quot;version&quot;: &quot;0.2.1&quot;,
  &quot;description&quot;: &quot;A gitbook plugin for showing the differences between the codes within markdown&quot;
}
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff">{
<span class="hljs-deletion">-   &quot;description&quot;: &quot;A gitBook plugin for generating and exporting mind map within markdown&quot;,</span>
<span class="hljs-deletion">-   &quot;name&quot;: &quot;gitbook-plugin-simple-mind-map&quot;,</span>
<span class="hljs-addition">+   &quot;description&quot;: &quot;A gitbook plugin for showing the differences between the codes within markdown&quot;,</span>
<span class="hljs-addition">+   &quot;name&quot;: &quot;gitbook-plugin-diff&quot;,</span>
    &quot;version&quot;: &quot;0.2.1&quot;
}
</code></pre>
</p>
<h2 id="&#x7528;&#x6CD5;">&#x7528;&#x6CD5;</h2>
<h3 id="&#x6B65;&#x9AA4;&#xFF03;1-&#x66F4;&#x65B0;-bookjson-&#x6587;&#x4EF6;">&#x6B65;&#x9AA4;&#xFF03;1-&#x66F4;&#x65B0; <code>book.json</code> &#x6587;&#x4EF6;</h3>
<p>&#x5728;&#x60A8;&#x7684; <code>gitbook</code> &#x7684; <code>book.json</code> &#x6587;&#x4EF6;&#x4E2D;,&#x5C06; <code>diff</code> &#x6DFB;&#x52A0;&#x5230; <code>plugins</code> &#x5217;&#x8868;&#x4E2D;.</p>
<p>&#x8FD9;&#x662F;&#x6700;&#x7B80;&#x5355;&#x7684;&#x793A;&#x4F8B;: </p>
<pre><code class="lang-json">{
    <span class="hljs-string">&quot;plugins&quot;</span>: [<span class="hljs-string">&quot;diff&quot;</span>]
}
</code></pre>
<p>&#x6B64;&#x5916;,&#x53D7;&#x652F;&#x6301;&#x7684;&#x914D;&#x7F6E;&#x9009;&#x9879;&#x5982;&#x4E0B;:</p>
<pre><code class="lang-json"><span class="hljs-string">&quot;gitbook&quot;</span>: {
    <span class="hljs-string">&quot;properties&quot;</span>: {
        <span class="hljs-string">&quot;type&quot;</span>: {
            <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
            <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;render type&quot;</span>,
            <span class="hljs-string">&quot;required&quot;</span>: <span class="hljs-literal">false</span>,
            <span class="hljs-string">&quot;default&quot;</span>: <span class="hljs-string">&quot;markdown&quot;</span>,
            <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;some supported methods such as markdown or console or html&quot;</span>
        },
        <span class="hljs-string">&quot;method&quot;</span>: {
            <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>,
            <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;jsdiff api method&quot;</span>,
            <span class="hljs-string">&quot;required&quot;</span>: <span class="hljs-literal">false</span>,
            <span class="hljs-string">&quot;default&quot;</span>: <span class="hljs-string">&quot;diffChars&quot;</span>,
            <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;some supported methods such as diffChars or diffWords or diffWordsWithSpace or diffLines or diffTrimmedLines or diffSentences or diffJson or diffArrays&quot;</span>
        },
        <span class="hljs-string">&quot;options&quot;</span>: {
            <span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;object&quot;</span>,
            <span class="hljs-string">&quot;title&quot;</span>: <span class="hljs-string">&quot;jsdiff api options&quot;</span>,
            <span class="hljs-string">&quot;required&quot;</span>: <span class="hljs-literal">false</span>,
            <span class="hljs-string">&quot;description&quot;</span>: <span class="hljs-string">&quot;some methods may not support options&quot;</span>
        }
    }
}
</code></pre>
<h3 id="&#x6B65;&#x9AA4;&#xFF03;2--&#x4F7F;&#x7528;-markdown-&#x8BED;&#x6CD5;">&#x6B65;&#x9AA4;&#xFF03;2- &#x4F7F;&#x7528; <code>markdown</code> &#x8BED;&#x6CD5;</h3>
<p><code>diff</code> &#x63D2;&#x4EF6;&#x652F;&#x6301; <code>method</code> &#x548C; <code>options</code> &#x7B49;&#x9009;&#x9879;&#x751F;&#x6210;&#x5DEE;&#x5F02;&#x4EE3;&#x7801;&#x5757;.</p>
<p>&#x8FD9;&#x662F;&#x5728; <code>markdown</code> &#x6587;&#x4EF6;&#x4E2D;&#x57FA;&#x672C;&#x4F7F;&#x7528;&#x8BED;&#x6CD5;:</p>
<pre><code>{% diff %}
```
old code
```
```
new code
```
{% enddiff %}
</code></pre><p>&#x4E0B;&#x9762;&#x6709;&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x793A;&#x4F8B;:</p>
<h4 id="diffdiffcharsoldstr-newstr-options"><code>Diff.diffChars(oldStr, newStr[, options])</code></h4>
<blockquote>
<p>&#x533A;&#x5206;&#x4E24;&#x4E2A;&#x6587;&#x672C;&#x5757;&#xFF0C;&#x9010;&#x4E2A;&#x5B57;&#x7B26;&#x6BD4;&#x8F83;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x9009;&#x9879;</strong></p>
<ul>
<li><code>ignoreCase</code> &#xFF1A; <code>true</code>&#x5FFD;&#x7565;&#x5927;&#x5C0F;&#x5199;&#x5DEE;&#x5F02;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A;<code>false</code> &#x3002;</li>
</ul>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffChars&quot;</code>&#x4EE5;&#x8C03;&#x7528;<code>Diff.diffChars(oldStr, newStr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffChars&quot; %}
<span class="hljs-code">```</span>js
cat
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>js
cap
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff">  ca
<span class="hljs-deletion">- t</span>
<span class="hljs-addition">+ p</span>
</code></pre>
</p>
<h4 id="diffdiffwordsoldstr-newstr-options"><code>Diff.diffWords(oldStr, newStr[, options])</code></h4>
<blockquote>
<p>&#x533A;&#x5206;&#x4E24;&#x4E2A;&#x6587;&#x672C;&#x5757;&#xFF0C;&#x9010;&#x5B57;&#x6BD4;&#x8F83;&#xFF0C;&#x5FFD;&#x7565;&#x7A7A;&#x683C;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x9009;&#x9879;</strong></p>
<ul>
<li><code>ignoreCase</code> &#xFF1A;&#x4E0E;<code>diffChars</code>&#x76F8;&#x540C;&#x3002;</li>
</ul>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffWords&quot;</code>&#x6765;&#x8C03;&#x7528;<code>Diff.diffWords(oldStr, newStr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffWords&quot; %}
<span class="hljs-code">```</span>bash
beep boop
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>bash
beep boob blah
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff">  beep 
<span class="hljs-deletion">- boop</span>
<span class="hljs-addition">+ boob</span>

<span class="hljs-addition">+ blah</span>
</code></pre>
</p>
<h4 id="diffdiffwordswithspaceoldstr-newstr-options"><code>Diff.diffWordsWithSpace(oldStr, newStr[, options])</code></h4>
<blockquote>
<p>&#x533A;&#x5206;&#x4E24;&#x4E2A;&#x6587;&#x672C;&#x5757;&#xFF0C;&#x9010;&#x5B57;&#x6BD4;&#x8F83;&#xFF0C;&#x5C06;&#x7A7A;&#x767D;&#x89C6;&#x4E3A;&#x6709;&#x6548;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x9009;&#x9879;</strong></p>
<ul>
<li><code>ignoreCase</code> &#xFF1A;&#x4E0E;<code>diffWords</code>&#x76F8;&#x540C;&#x3002;</li>
</ul>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffWordsWithSpace&quot;</code>&#x4EE5;&#x8C03;&#x7528;<code>Diff.diffWordsWithSpace(oldStr, newStr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffWordsWithSpace&quot; %}
<span class="hljs-code">```</span>bash
beep boop
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>bash
beep boob blah
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff">  beep 
<span class="hljs-deletion">- boop</span>
<span class="hljs-addition">+ boob blah</span>
</code></pre>
</p>
<h4 id="diffdifflinesoldstr-newstr-options"><code>Diff.diffLines(oldStr, newStr[, options])</code></h4>
<blockquote>
<p>&#x6BD4;&#x8F83;&#x4E24;&#x4E2A;&#x6587;&#x672C;&#x5757;&#xFF0C;&#x9010;&#x884C;&#x6BD4;&#x8F83;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x9009;&#x9879;</strong></p>
<ul>
<li><code>ignoreWhitespace</code> &#xFF1A; <code>true</code>&#x5FFD;&#x7565;&#x524D;&#x5BFC;&#x548C;&#x5C3E;&#x968F;&#x7A7A;&#x767D;&#x3002;&#x8FD9;&#x4E0E;<code>diffTrimmedLines</code>&#x76F8;&#x540C;</li>
<li><code>newlineIsToken</code> &#xFF1A; <code>true</code> <code>newlineIsToken</code>&#x6362;&#x884C;&#x7B26;&#x89C6;&#x4E3A;&#x5355;&#x72EC;&#x7684;&#x6807;&#x8BB0;&#x3002;&#x8FD9;&#x5141;&#x8BB8;&#x6362;&#x884C;&#x7ED3;&#x6784;&#x7684;&#x66F4;&#x6539;&#x72EC;&#x7ACB;&#x4E8E;&#x884C;&#x5185;&#x5BB9;&#x800C;&#x53D1;&#x751F;&#xFF0C;&#x5E76;&#x7167;&#x6B64;&#x5904;&#x7406;&#x3002;&#x901A;&#x5E38;&#xFF0C;&#x8FD9;&#x662F;<code>diffLines</code>&#x66F4;&#x52A0;&#x4EBA;&#x6027;&#x5316;&#x7684;&#x5F62;&#x5F0F;&#xFF0C;&#x5E76;&#x4E14;<code>diffLines</code>&#x66F4;&#x9002;&#x5408;&#x4E8E;&#x8865;&#x4E01;&#x548C;&#x5176;&#x4ED6;&#x8BA1;&#x7B97;&#x673A;&#x53CB;&#x597D;&#x7684;&#x8F93;&#x51FA;&#x3002;</li>
</ul>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffLines&quot;</code>&#x4EE5;&#x8C03;&#x7528;<code>Diff.diffLines(oldStr, newStr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffLines&quot;,options={&quot;newlineIsToken&quot;:true} %}
<span class="hljs-code">```</span>bash
beep boop
the cat is palying with cap
what
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>bash
beep boob blah
the cat is palying with cap
who
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff"><span class="hljs-deletion">- beep boop</span>

<span class="hljs-addition">+ beep boob blah</span>

  the cat is palying with cap

<span class="hljs-deletion">- what</span>

<span class="hljs-addition">+ who</span>
</code></pre>
</p>
<h4 id="diffdifftrimmedlinesoldstr-newstr-options"><code>Diff.diffTrimmedLines(oldStr, newStr[, options])</code></h4>
<blockquote>
<p>&#x533A;&#x5206;&#x4E24;&#x4E2A;&#x6587;&#x672C;&#x5757;&#xFF0C;&#x9010;&#x884C;&#x6BD4;&#x8F83;&#xFF0C;&#x5FFD;&#x7565;&#x524D;&#x5BFC;&#x548C;&#x5C3E;&#x968F;&#x7A7A;&#x683C;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x9009;&#x9879;</strong></p>
<ul>
<li><code>ignoreWhitespace</code> &#xFF1A;&#x4E0E;<code>diffLines</code>&#x76F8;&#x540C;&#x3002;</li>
<li><code>newlineIsToken</code> &#xFF1A;&#x540C;<code>diffLines</code> &#x3002;</li>
</ul>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffTrimmedLines&quot;</code>&#x6765;&#x8C03;&#x7528;<code>Diff.diffTrimmedLines(oldStr, newStr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffTrimmedLines&quot;,options={&quot;newlineIsToken&quot;:true} %}
<span class="hljs-code">```</span>bash
beep boop
the cat is palying with cap
what
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>bash
beep boob blah
the cat is palying with cat
who
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff"><span class="hljs-deletion">- beep boop</span>
<span class="hljs-deletion">- the cat is palying with cap</span>
<span class="hljs-deletion">- what</span>
<span class="hljs-addition">+ beep boob blah</span>
<span class="hljs-addition">+ the cat is palying with cat</span>
<span class="hljs-addition">+ who</span>
</code></pre>
</p>
<h4 id="diffdiffsentencesoldstr-newstr-options"><code>Diff.diffSentences(oldStr, newStr[, options])</code></h4>
<blockquote>
<p>&#x533A;&#x5206;&#x4E24;&#x4E2A;&#x6587;&#x672C;&#x5757;&#xFF0C;&#x9010;&#x53E5;&#x6BD4;&#x8F83;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffSentences&quot;</code>&#x6765;&#x8C03;&#x7528;<code>Diff.diffSentences(oldStr, newStr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffSentences&quot; %}
<span class="hljs-code">```</span>bash
beep boop
the cat is palying with cap
what
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>bash
beep boob blah
the cat is palying with cat
who
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff"><span class="hljs-deletion">- beep boop</span>
<span class="hljs-deletion">- the cat is palying with cap</span>
<span class="hljs-deletion">- what</span>
<span class="hljs-addition">+ beep boob blah</span>
<span class="hljs-addition">+ the cat is palying with cat</span>
<span class="hljs-addition">+ who</span>
</code></pre>
</p>
<h4 id="diffdiffjsonoldobj-newobj-options"><code>Diff.diffJson(oldObj, newObj[, options])</code></h4>
<blockquote>
<p>&#x6BD4;&#x8F83;&#x4E24;&#x4E2A;JSON&#x5BF9;&#x8C61;&#xFF0C;&#x6BD4;&#x8F83;&#x6BCF;&#x4E2A;&#x5BF9;&#x8C61;&#x4E0A;&#x5B9A;&#x4E49;&#x7684;&#x5B57;&#x6BB5;&#x3002;&#x5728;&#x6B64;&#x6BD4;&#x8F83;&#x4E2D;&#xFF0C;&#x5B57;&#x6BB5;&#x7684;&#x987A;&#x5E8F;&#x7B49;&#x5E76;&#x4E0D;&#x91CD;&#x8981;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffJson&quot;</code>&#x6765;&#x8C03;&#x7528;<code>Diff.diffJson(oldObj, newObj[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffJson&quot; %}
<span class="hljs-code">```</span>json
{
  &quot;name&quot;: &quot;gitbook-plugin-simple-mind-map&quot;,
  &quot;version&quot;: &quot;0.2.1&quot;,
  &quot;description&quot;: &quot;A gitBook plugin for generating and exporting mind map within markdown&quot;
}
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>json
{
  &quot;name&quot;: &quot;gitbook-plugin-diff&quot;,
  &quot;version&quot;: &quot;0.2.1&quot;,
  &quot;description&quot;: &quot;A gitbook plugin for showing the differences between the codes within markdown&quot;
}
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff">{
<span class="hljs-deletion">-   &quot;description&quot;: &quot;A gitBook plugin for generating and exporting mind map within markdown&quot;,</span>
<span class="hljs-deletion">-   &quot;name&quot;: &quot;gitbook-plugin-simple-mind-map&quot;,</span>
<span class="hljs-addition">+   &quot;description&quot;: &quot;A gitbook plugin for showing the differences between the codes within markdown&quot;,</span>
<span class="hljs-addition">+   &quot;name&quot;: &quot;gitbook-plugin-diff&quot;,</span>
    &quot;version&quot;: &quot;0.2.1&quot;
}
</code></pre>
</p>
<h4 id="diffdiffarraysoldarr-newarr-options"><code>Diff.diffArrays(oldArr, newArr[, options])</code></h4>
<blockquote>
<p>&#x6BD4;&#x8F83;&#x4E24;&#x4E2A;&#x6570;&#x7EC4;&#xFF0C;&#x6BD4;&#x8F83;&#x6BCF;&#x4E2A;&#x9879;&#x76EE;&#x662F;&#x5426;&#x4E25;&#x683C;&#x76F8;&#x7B49;&#xFF08;===&#xFF09;&#x3002;</p>
</blockquote>
<p><strong>&#x8FD4;&#x56DE;</strong></p>
<p>&#x8FD4;&#x56DE;&#x66F4;&#x6539;&#x5BF9;&#x8C61;&#x5217;&#x8868;&#xFF08;&#x8BF7;&#x53C2;&#x89C1;&#x4E0B;&#x6587;&#xFF09;&#x3002;</p>
<p><strong>&#x9009;&#x4EF6;</strong></p>
<ul>
<li><code>comparator</code> &#xFF1A;&#x7528;&#x4E8E;&#x81EA;&#x5B9A;&#x4E49;&#x76F8;&#x7B49;&#x6027;&#x68C0;&#x67E5;&#x7684;<code>function(left, right)</code></li>
</ul>
<p><strong>&#x793A;&#x4F8B;</strong></p>
<ul>
<li>&#x7528;&#x6CD5;</li>
</ul>
<blockquote>
<p>&#x8BBE;&#x7F6E;<code>method=&quot;diffArrays&quot;</code>&#x4EE5;&#x8C03;&#x7528;<code>Diff.diffArrays(oldArr, newArr[, options])</code>&#x65B9;&#x6CD5;</p>
</blockquote>
<pre><code class="lang-markdown">{% diff method=&quot;diffArrays&quot; %}
<span class="hljs-code">```</span>json
[
<span class="hljs-code">    &quot;Vue&quot;,</span>
<span class="hljs-code">    &quot;Python&quot;,</span>
<span class="hljs-code">    &quot;Java&quot;,</span>
<span class="hljs-code">    &quot;flutter&quot;,</span>
<span class="hljs-code">    &quot;springboot&quot;,</span>
<span class="hljs-code">    &quot;docker&quot;,</span>
<span class="hljs-code">    &quot;React&quot;,</span>
<span class="hljs-code">    &quot;&#x5C0F;&#x7A0B;&#x5E8F;&quot;</span>
]
<span class="hljs-code">```</span>
<span class="hljs-code">```</span>json
[
<span class="hljs-code">    &quot;Vuejs&quot;,</span>
<span class="hljs-code">    &quot;Nodejs&quot;,</span>
<span class="hljs-code">    &quot;Java&quot;,</span>
<span class="hljs-code">    &quot;flutter&quot;,</span>
<span class="hljs-code">    &quot;springboot&quot;,</span>
<span class="hljs-code">    &quot;docker&quot;,</span>
<span class="hljs-code">    &quot;React&quot;</span>
]
<span class="hljs-code">```</span>
{% enddiff %}
</code></pre>
<ul>
<li>&#x9884;&#x89C8;</li>
</ul>
<p><pre><code class="lang-diff">[
<span class="hljs-deletion">- Vue</span>
<span class="hljs-deletion">- Python</span>
<span class="hljs-addition">+ Vuejs</span>
<span class="hljs-addition">+ Nodejs</span>
  Java
  flutter
  springboot
  docker
  React
<span class="hljs-deletion">- &#x5C0F;&#x7A0B;&#x5E8F;</span>
]
</code></pre>
</p>
<h3 id="&#x6B65;&#x9AA4;&#xFF03;3--&#x8FD0;&#x884C;-gitbook-&#x547D;&#x4EE4;">&#x6B65;&#x9AA4;&#xFF03;3- &#x8FD0;&#x884C; <code>gitbook</code> &#x547D;&#x4EE4;</h3>
<ol>
<li>&#x8FD0;&#x884C; <code>gitbook install</code> .&#x5B83;&#x5C06;&#x81EA;&#x52A8;&#x4E3A;&#x60A8;&#x7684; <code>gitbook</code> &#x5B89;&#x88C5; <code>diff</code> &#x63D2;&#x4EF6;.</li>
</ol>
<blockquote>
<p>&#x8BE5;&#x6B65;&#x9AA4;&#x4EC5;&#x9700;&#x8981;&#x5141;&#x8BB8;&#x4E00;&#x6B21;&#x5373;&#x53EF;.</p>
</blockquote>
<pre><code class="lang-bash">gitbook install
</code></pre>
<p>&#x6216;&#x8005;&#x60A8;&#x53EF;&#x4EE5;&#x8FD0;&#x884C; <code>npm install gitbook-plugin-diff</code> &#x547D;&#x4EE4;&#x672C;&#x5730;&#x5B89;&#x88C5; <code>gitbook-plugin-diff</code> &#x63D2;&#x4EF6;.</p>
<pre><code class="lang-bash">npm install gitbook-plugin-diff
</code></pre>
<ol>
<li>&#x50CF;&#x5F80;&#x5E38;&#x4E00;&#x6837;&#x6784;&#x5EFA;&#x60A8;&#x7684;&#x4E66;&#xFF08; <code>gitbook build</code> &#xFF09;&#x6216;&#x670D;&#x52A1;&#xFF08; <code>gitbook serve</code> &#xFF09;.</li>
</ol>
<pre><code class="lang-bash">gitbook serve
</code></pre>
<h2 id="&#x793A;&#x4F8B;">&#x793A;&#x4F8B;</h2>
<ul>
<li>&#x5B98;&#x65B9;&#x6587;&#x6863;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
</ul>
<blockquote>
<p><a href="https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/docs/book.json" target="_blank">https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/docs/book.json</a></p>
</blockquote>
<pre><code class="lang-json">{
    <span class="hljs-string">&quot;plugins&quot;</span>: [<span class="hljs-string">&quot;diff&quot;</span>],
    <span class="hljs-string">&quot;pluginsConfig&quot;</span>: {
        <span class="hljs-string">&quot;diff&quot;</span>: {
            <span class="hljs-string">&quot;method&quot;</span>: <span class="hljs-string">&quot;diffJson&quot;</span>
        }
    }
}
</code></pre>
<ul>
<li>&#x5B98;&#x65B9;&#x793A;&#x4F8B;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
</ul>
<blockquote>
<p><a href="https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/example/book.json" target="_blank">https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/example/book.json</a></p>
</blockquote>
<pre><code class="lang-json">{
    <span class="hljs-string">&quot;plugins&quot;</span>: [<span class="hljs-string">&quot;diff&quot;</span>],
    <span class="hljs-string">&quot;pluginsConfig&quot;</span>: {
        <span class="hljs-string">&quot;diff&quot;</span>: {
            <span class="hljs-string">&quot;method&quot;</span>: <span class="hljs-string">&quot;diffJson&quot;</span>
        }
    }
}
</code></pre>
<ul>
<li>&#x793A;&#x4F8B;<code>book.json</code>&#x6587;&#x4EF6;</li>
</ul>
<pre><code class="lang-json">{
    <span class="hljs-string">&quot;plugins&quot;</span>: [<span class="hljs-string">&quot;diff&quot;</span>]
}
</code></pre>
<p>&#x6216;&#x8005;&#x60A8;&#x53EF;&#x4EE5;&#x5C06; <code>method</code> &#x8BBE;&#x7F6E;&#x4E3A;&#x9ED8;&#x8BA4;&#x65B9;&#x6CD5;&#x7528;&#x4E8E;&#x4EE3;&#x7801;&#x4E4B;&#x95F4;&#x8FDB;&#x884C;&#x6BD4;&#x8F83;&#x65B9;&#x5F0F;&#xFF1A;</p>
<pre><code class="lang-json">{
    <span class="hljs-string">&quot;plugins&quot;</span>: [<span class="hljs-string">&quot;diff&quot;</span>],
    <span class="hljs-string">&quot;pluginsConfig&quot;</span>: {
        <span class="hljs-string">&quot;diff&quot;</span>: {
            <span class="hljs-string">&quot;method&quot;</span>: <span class="hljs-string">&quot;diffChars&quot;</span>
        }
    }
}
</code></pre>
<p>&#x6216;&#x8005;&#x60A8;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x65B9;&#x6CD5;&#x5C06; <code>options</code> &#x8BBE;&#x7F6E;&#x4E3A;&#x9ED8;&#x8BA4;&#x9009;&#x9879;.</p>
<pre><code class="lang-json">{
    <span class="hljs-string">&quot;plugins&quot;</span>: [<span class="hljs-string">&quot;diff&quot;</span>],
    <span class="hljs-string">&quot;pluginsConfig&quot;</span>: {
        <span class="hljs-string">&quot;diff&quot;</span>: {
            <span class="hljs-string">&quot;method&quot;</span>: <span class="hljs-string">&quot;diffChars&quot;</span>,
            <span class="hljs-string">&quot;options&quot;</span>: {
              <span class="hljs-string">&quot;ignoreCase&quot;</span>: <span class="hljs-literal">true</span>
            }
        }
    }
}
</code></pre>
<p><strong>&#x6CE8;&#x610F;</strong> &#xFF1A;&#x5982;&#x679C;&#x60A8;&#x7684;&#x4E66;&#x8FD8;&#x6CA1;&#x6709;&#x521B;&#x5EFA;,&#x4EE5;&#x4E0A;&#x4EE3;&#x7801;&#x6BB5;&#x53EF;&#x4EE5;&#x7528;&#x4F5C;&#x5B8C;&#x6574;&#x7684; <code>book.json</code> &#x6587;&#x4EF6;.</p>
<h2 id="&#x81F4;&#x8C22;">&#x81F4;&#x8C22;</h2>
<ul>
<li>A javascript text differencing implementation. : <a href="https://github.com/kpdecker/jsdiff" target="_blank">https://github.com/kpdecker/jsdiff</a></li>
<li>get colors in your node.js console : <a href="https://github.com/Marak/colors.js" target="_blank">https://github.com/Marak/colors.js</a></li>
<li>GitBook CodeGroup Plugin : <a href="https://github.com/lwhiteley/gitbook-plugin-codegroup" target="_blank">https://github.com/lwhiteley/gitbook-plugin-codegroup</a></li>
</ul>
<h2 id="&#x4F5C;&#x8005;">&#x4F5C;&#x8005;</h2>
<p>&#x1F464; <strong>snowdreams1006</strong></p>
<ul>
<li>&#x7F51;&#x7AD9; : <a href="https://snowdreams1006.tech/" target="_blank">snowdreams1006.tech</a></li>
<li>GitHub :  <a href="https://github.com/snowdreams1006" target="_blank">@snowdreams1006</a></li>
<li>&#x7535;&#x5B50;&#x90AE;&#x4EF6; : <a href="mailto:snowdreams1006@163.com" target="_blank">snowdreams1006@163.com</a></li>
</ul>
<h2 id="&#x8D21;&#x732E;">&#x8D21;&#x732E;</h2>
<p>&#x6B22;&#x8FCE;&#x8D21;&#x732E;&#xFF0C;&#x95EE;&#x9898;&#x548C;&#x529F;&#x80FD;&#x8981;&#x6C42;&#xFF01;&#x968F;&#x65F6;&#x68C0;&#x67E5;<a href="https://github.com/snowdreams1006/gitbook-plugin-diff/issues" target="_blank">&#x95EE;&#x9898;&#x9875;&#x9762;</a> &#x3002;</p>
<h2 id="&#x652F;&#x6301;">&#x652F;&#x6301;</h2>
<p>&#x5982;&#x679C;&#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x5BF9;&#x60A8;&#x6709;&#x5E2E;&#x52A9;&#xFF0C;&#x8BF7;&#x7ED9;&#x4E2A;<a href="https://github.com/snowdreams1006/gitbook-plugin-diff" target="_blank">&#x661F;&#x661F;</a> &#xFF01;</p>
<h2 id="&#x7248;&#x6743;">&#x7248;&#x6743;</h2>
<p>&#x7248;&#x6743;&#x6240;&#x6709;&#xA9;2019 <a href="https://github.com/snowdreams1006" target="_blank">snowdreams1006</a> &#x3002;</p>
<p>&#x8BE5;&#x9879;&#x76EE;&#x662F;<a href="https://github.com/snowdreams1006/gitbook-plugin-diff/blob/master/LICENSE" target="_blank">MIT</a>&#x8BB8;&#x53EF;&#x7684;&#x3002;</p>
<pre><code class="lang-html">&#x4F5C;&#x8005;: snowdreams1006
&#x94FE;&#x63A5;: https://snowdreams1006.github.io/gitbook-plugin-diff/zh/
&#x6765;&#x6E90;: snowdreams1006.tech
&#x672C;&#x6587;&#x539F;&#x521B;&#x53D1;&#x5E03;&#x4E8E;&#x300C;snowdreams1006.tech&#x300D;,&#x8F6C;&#x8F7D;&#x8BF7;&#x6CE8;&#x660E;&#x51FA;&#x5904;,&#x8C22;&#x8C22;&#x5408;&#x4F5C;!
</code></pre>
<p><img src="https://snowdreams1006.github.io/snowdreams1006-wechat-open.png" alt="https://snowdreams1006.github.io/snowdreams1006-wechat-open.png"></p>
<div id="gitalk-container"></div>
                </div>
                <script src="https://my.openwrite.cn/js/readmore.js"></script>
                <script>
                    var enablePlugin = false;
                    var allowDomain = "localhost";
                    if(allowDomain){
                        var currentDomain = location.hostname;
                        if ($.isArray(allowDomain)) {
                            $.each(allowDomain, function(index, item) {
                                if (currentDomain == item) {
                                    enablePlugin = true;
                                    return false;
                                }
                            });
                        }else{
                           if (currentDomain == allowDomain) {
                                enablePlugin = true;
                            }
                        }
                    }else{
                        enablePlugin = true;
                    }
                    
                    if(enablePlugin){
                        var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
                        if (!isMobile) {
                            var btw = new BTWPlugin();
                            btw.init({"allowDomain":"localhost","blogId":"15702-1569305559839-744","name":"雪之梦技术驿站","qrcode":"https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg","keyword":"vip","id":"vip-container"});
                        }
                    }
                </script>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"简介","level":"1.1","depth":1,"next":{"title":"gitbook-official","level":"1.2","depth":1,"url":"https://snowdreams1006.github.io/gitbook-official/","ref":"https://snowdreams1006.github.io/gitbook-official/","articles":[]},"dir":"ltr"},"config":{"plugins":["favicon-absolute","github-buttons","edit-link-plus","code","readmore","copyright","mygitalk","icp","diff"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"diff":{"method":"diffChars","options":{},"type":"markdown"},"copyright":{"copyProtect":false,"site":"https://snowdreams1006.github.io/gitbook-plugin-diff","author":"snowdreams1006","website":"snowdreams1006.tech","image":"https://snowdreams1006.github.io/snowdreams1006-wechat-open.png"},"search":{},"edit-link-plus":{"label":"Edit This Page","base":{"snowdreams1006.github.io":"https://github.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs","snowdreams1006.gitlab.io":"https://gitlab.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs","snowdreams1006.gitee.io":"https://gitee.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs"},"defaultBase":"https://github.com/snowdreams1006/gitbook-plugin-diff/edit/master/docs"},"readmore":{"allowDomain":"localhost","blogId":"15702-1569305559839-744","name":"雪之梦技术驿站","qrcode":"https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg","keyword":"vip"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"favicon-absolute":{"appleTouchIconMore":{"120x120":"/apple-touch-icon-120.png","180x180":"/apple-touch-icon-180.png"},"appleTouchIconPrecomposed152":"/apple-touch-icon-precomposed-152.png","appleTouchIconPrecomposedMore":{"120x120":"/apple-touch-icon-precomposed-120.png","180x180":"/apple-touch-icon-precomposed-180.png"},"favicon":"/favicon.ico","bookmark":"/bookmark.ico","appleTouchIcon152":"/apple-touch-icon-152.png"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"icp":{"link":"http://www.beian.miit.gov.cn/","style":{},"number":"浙ICP备18042346号"},"github-buttons":{"buttons":[{"user":"snowdreams1006","repo":"gitbook-plugin-diff","type":"star","size":"small"}]},"mygitalk":{"flipMoveOptions":{},"clientID":"b41f45e89afe86e4782f","number":-1,"perPage":10,"proxy":"https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token","admin":["snowdreams1006"],"createIssueManually":false,"distractionFreeMode":false,"repo":"gitbook-plugin-diff","owner":"snowdreams1006","enableHotKey":true,"clientSecret":"50efaa46056c41abbdc7537cd09061677d02c0af","pagerDirection":"last","labels":["Gitalk"]},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"snowdreams1006","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"diff docs","language":"zh","links":{"sidebar":{"blog":"https://snowdreams1006.tech/"}},"gitbook":"*","description":"gitbook-plugin-diff docs"},"file":{"path":"README.md","mtime":"2020-04-12T16:03:56.357Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-04-12T16:12:37.989Z"},"basePath":".","book":{"language":"zh"}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link-plus/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copyright/plugin.js"></script>
        
    
        
        <script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
        
    
        
        <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mygitalk/mygitalk.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

